<h2>Pembagian Tugas Mengajar Guru (<? echo $teacher['name'] ?>) &raquo; Tambah Data - Tahun Ajaran <?echo $school_year . $semester?></h2>
<?php echo form_open('admin/teachings/add') ?>
	<?php echo form_hidden('school_year_id',$school_year_id) ?>
	<?php echo form_hidden('teacher_id', $teacher['id']) ?>
	<?php echo form_hidden('subject_id', $subject_id) ?>

	<ul class="prerequisites">
		<li>Semua field harus diisi</li>
	</ul>
	<ul class="fields">
		<?php $this->load->view('admin/teachings/_form') ?>
		<li>
			<div class="actions">
				<? 	if(empty($subject_id))
						echo form_submit('insert_subject', 'Simpan', 'id="submit"') ;
					else
						echo form_submit('insert_class', 'Simpan', 'id="submit"') ;
				?>
				&nbsp;&nbsp;&nbsp;
				<?php echo form_reset('reset', 'Reset', 'id="reset"') ?>
			</div>
		</li>
	</ul>
<?php echo form_close() ?>
